package com.qipay.sp;

import com.qipay.baas.model.ApiType;
import com.qipay.baas.model.SpApiConfig;
import com.qipay.scalar.type.ApiTypeEnum;
import com.qipay.scalar.type.ChannelTypeEnum;

import java.util.List;
import java.util.Map;

public interface SpApiConfigService {
    Map<String, Object> getKeyValues(Long spid,
                                     ChannelTypeEnum channelTypeEnum,
                                     ApiTypeEnum apiTypeEnum);

    int insert(SpApiConfig sp);
    int update(SpApiConfig sp);
    int delete(int id);
    SpApiConfig get(int id);
    List<SpApiConfig> all();
    List<SpApiConfig> selectBySpId(int id);
    List<ApiType> selectAllApiType();
}
